import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findProductInfoListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productInfo/findProductInfoListByPage',
        method: 'post',
        params
    })
}
export function findProductDetails(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productInfo/findProductDetails',
        method: 'post',
        params
    })
}
export function del(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productInfo/del',
        method: 'post',
        params
    })
}
export function operateStatus(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productInfo/operateStatus',
        method: 'post',
        params
    })
}
export function save(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productInfo/saveProductInfo',
        method: 'post',
        data: params
    })
}
export function findProductUnitListByProductId(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productInfo/findProductUnitListByProductId',
        method: 'post',
        params
    })
}
export function copy(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/product/productInfo/copy',
        method: 'post',
        params
    })
}